package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Courses4Mapper;
import com.ruoyi.system.domain.Courses4;
import com.ruoyi.system.service.ICourses4Service;

/**
 * 成绩表4Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class Courses4ServiceImpl implements ICourses4Service 
{
    @Autowired
    private Courses4Mapper courses4Mapper;

    /**
     * 查询成绩表4
     * 
     * @param courseId 成绩表4主键
     * @return 成绩表4
     */
    @Override
    public Courses4 selectCourses4ByCourseId(Long courseId)
    {
        return courses4Mapper.selectCourses4ByCourseId(courseId);
    }

    /**
     * 查询成绩表4列表
     * 
     * @param courses4 成绩表4
     * @return 成绩表4
     */
    @Override
    public List<Courses4> selectCourses4List(Courses4 courses4)
    {
        return courses4Mapper.selectCourses4List(courses4);
    }

    /**
     * 新增成绩表4
     * 
     * @param courses4 成绩表4
     * @return 结果
     */
    @Override
    public int insertCourses4(Courses4 courses4)
    {
        return courses4Mapper.insertCourses4(courses4);
    }

    /**
     * 修改成绩表4
     * 
     * @param courses4 成绩表4
     * @return 结果
     */
    @Override
    public int updateCourses4(Courses4 courses4)
    {
        return courses4Mapper.updateCourses4(courses4);
    }

    /**
     * 批量删除成绩表4
     * 
     * @param courseIds 需要删除的成绩表4主键
     * @return 结果
     */
    @Override
    public int deleteCourses4ByCourseIds(Long[] courseIds)
    {
        return courses4Mapper.deleteCourses4ByCourseIds(courseIds);
    }

    /**
     * 删除成绩表4信息
     * 
     * @param courseId 成绩表4主键
     * @return 结果
     */
    @Override
    public int deleteCourses4ByCourseId(Long courseId)
    {
        return courses4Mapper.deleteCourses4ByCourseId(courseId);
    }
}
